<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Patient extends Model
{
    use HasFactory;
    //预约挂号表
    protected $table='patient';
    protected $guarded = [];
    //预约表关联医生表
    public function patientDoctor()
    {
        return $this->belongsTo(Doctor::class,'doctor_id','id');
    }
}
